package com.hsnn.medstgmini.pro.project.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ViewBidproject entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "view_bidproject")
public class ViewBidproject implements java.io.Serializable {

	// Fields

	private ViewBidprojectId id;

	// Constructors

	/** default constructor */
	public ViewBidproject() {
	}

	/** full constructor */
	public ViewBidproject(ViewBidprojectId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "projId", column = @Column(name = "proj_id", nullable = false, length = 36)),
			@AttributeOverride(name = "projCode", column = @Column(name = "proj_code", length = 100)),
			@AttributeOverride(name = "name", column = @Column(name = "name", length = 256)),
			@AttributeOverride(name = "projCat", column = @Column(name = "proj_cat")),
			@AttributeOverride(name = "status", column = @Column(name = "status")),
			@AttributeOverride(name = "createDatetime", column = @Column(name = "create_datetime", length = 19)),
			@AttributeOverride(name = "hospcount", column = @Column(name = "hospcount")),
			@AttributeOverride(name = "drugcount", column = @Column(name = "drugcount")),
			@AttributeOverride(name = "compcount", column = @Column(name = "compcount")) })
	public ViewBidprojectId getId() {
		return this.id;
	}

	public void setId(ViewBidprojectId id) {
		this.id = id;
	}

}